package com.ruoyi.zhuangtai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zhuangtai.mapper.AlgsTypeMapper;
import com.ruoyi.zhuangtai.domain.AlgsType;
import com.ruoyi.zhuangtai.service.IAlgsTypeService;

/**
 * 状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-03-17
 */
@Service
public class AlgsTypeServiceImpl implements IAlgsTypeService 
{
    @Autowired
    private AlgsTypeMapper algsTypeMapper;

    /**
     * 查询状态
     * 
     * @param typeId 状态主键
     * @return 状态
     */
    @Override
    public AlgsType selectAlgsTypeByTypeId(Long typeId)
    {
        return algsTypeMapper.selectAlgsTypeByTypeId(typeId);
    }

    /**
     * 查询状态列表
     * 
     * @param algsType 状态
     * @return 状态
     */
    @Override
    public List<AlgsType> selectAlgsTypeList(AlgsType algsType)
    {
        return algsTypeMapper.selectAlgsTypeList(algsType);
    }

    /**
     * 新增状态
     * 
     * @param algsType 状态
     * @return 结果
     */
    @Override
    public int insertAlgsType(AlgsType algsType)
    {
        return algsTypeMapper.insertAlgsType(algsType);
    }

    /**
     * 修改状态
     * 
     * @param algsType 状态
     * @return 结果
     */
    @Override
    public int updateAlgsType(AlgsType algsType)
    {
        return algsTypeMapper.updateAlgsType(algsType);
    }

    /**
     * 批量删除状态
     * 
     * @param typeIds 需要删除的状态主键
     * @return 结果
     */
    @Override
    public int deleteAlgsTypeByTypeIds(Long[] typeIds)
    {
        return algsTypeMapper.deleteAlgsTypeByTypeIds(typeIds);
    }

    /**
     * 删除状态信息
     * 
     * @param typeId 状态主键
     * @return 结果
     */
    @Override
    public int deleteAlgsTypeByTypeId(Long typeId)
    {
        return algsTypeMapper.deleteAlgsTypeByTypeId(typeId);
    }
}
